#include<iostream>
#include"Logbook.h"
using namespace std;
int main(){
	Logbook logDay100,logDay200;//logDay,
	int day;
	int days=logDay100.getDaysInMonth();
	for(day=1;day<=days;day++){
		logDay100.putEntry(day,day*100);
		logDay200.putEntry(day,day*200);
	}
	char c;
	bool isLoop=true;
	while(isLoop){
		cout<<"please input d to display."<<endl;
		cin>>c;
		switch(c){
		case'd':
			cout<<"logDay100 is "<<endl;
			logDay100.displayCalendar();
			cout<<"logDay200 is :"<<endl;
			logDay200.displayCalendar();
			logDay100+=logDay200;
			cout<<"logDay100 is "<<endl;
			logDay100.displayCalendar();
			break;
		case'q':
			isLoop=false;
			break;
		}
	}
	cout<<"Goodbye."<<endl;
	c=getchar();
	return 0;
}